package com.ctrip.study.refactor.moveMethod;

public class AccountType {

	public boolean isPremium() {
		return false;
	}
	
	double overdraftCharge(int daysOverdrawn) { // 译注：透支金计费，它和其他class的关系似乎比较密切。
		if (isPremium()) {
			double result = 10;
			if (daysOverdrawn > 7)
				result += (daysOverdrawn - 7) * 0.85;
			return result;
		}
		else
			return daysOverdrawn * 1.75;
	}

}
